home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aventura Visual - História Do Mundo
/
Aventura Visual - História do Mundo.img
/
dksetup
/
dksetup.mst
< prev
next >
Wrap
Text File
|
1996-11-04
|
31KB
|
855 lines
''$DEFINE DEBUG
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' HISTORY (UK)
'
'
' VERSION
' -------
CONST STR_VERSION = "V 2.0.22"
'
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'Change History
'--------------
'
'03/04/96 Removed the path in the device=dva.386 entry which is put into system.ini.
' The Code is in UpdateWing in Dkgen.inc. This stops a crash when installing
' Windows then our product then Office.
'22/03/96 Change WITH_SAMPLER_NOCM to WITH_FULL_SAMPLER. Installs the sampler to
' \DKMM\SAMPLER. The sampler files go in the [SAMPBIN] section in Setup.inf
'27/02/96 Installs Quick Time for Windows when INST_QTW is defined.
'16/02/96 Made the cursor 'Busy' while creating the program group/items.
'14/02/96 Add the Sampler Icon name to the MMAPP.ini when using WITH_SAMPLER_NOCOM,
' so that uninstall can delete the Sampler Icon.
'12/02/96 Added option to bundle sampler WITHOUT the Custom Menu.
'25/01/96 Add WITH_ORDERING_INFO and MUSEUM_TITLE defines.
'22/01/96 Fix the dialogs in the TestSystem function in Dkgen.inc.
'15/12/95 Fix the Set Restart Directory problem when installing Win32s
'14/12/95 Only delete files from the previous install if it was in a
' different directory. Otherwise it deletes the files just installed!
'05/12/95 Reset the default install path when selecting back from the custom
' install dialog box and clear the copy list.
'04/12/95 Move the mmapp.ini entry updates after the install.
'31/11/95 Check the msacm.ini to make sure the audio compression is enabled.
'29/11/95 Add the line in DKCODE\VERSION.INI to the main ini file. This is only
' used by the sampler3 product at the moment.
'21/11/95 Can now handle a product + sampler3 bundle disc.
'13/11/95 Add the Setup Version number to the About dialog box in the Setup.
'08/11/95 Use the test for cirrus logic dirvers all of the time, not just
' when bundled with a sampler.
'03/11/95 Cater for Win32s install and general tidy up of this script file.
' Unfortunately still need to use comments to select / deselect
' the specific font code parts.
'18/08/95 rc and this have no min install. Changed dlg boxes custom,
' custom help and speed
'18/08/95 Register notes most recent lang used
'11/08/95 Register created using inf file
'26/07/95 Uninstall code added
'07/07/95 Correct dkgen.inc so unregisters use of ctl3d
'04/07/95 Make sure files in bin section of inf file 'always' overwrite
'28/07/95 Ini file not created for minimum install, uses file provided in dkcode
'27/06/95 Test for directory names max 8 chars
'26/06/95 For minimum install, ini file is now not installed
'19/06/95 Moved test for cirrus drivers to mst file as only applies to sampler
'05/06/95 Fonts installed on users machine
'01/06/95 No choice about adding icon to prog man, altered dkgen.inc & rc file
' (custom, customhelp & speed dlg boxes need changing)
'22/05/95 Code for bundling with sampler
'22/05/95 Large readme need Write (will need to change dlg box in rc file)
'15/05/95 No warning that directory does not exist
'03/05/95 Ini file put in executable directory rather than Windows dir to stop
' clash with foreign products with same name files
'
'------------------------------------------------------------------------------
'******************************************************************************
'
' START OF CHANGE SECTION
'
' The only changes that need to be made to this file for every setup are in
' this change section between the two lines of ******'s.
' EXCEPTION: When using fonts. See note below.
' Defines for setup flow control. Comment out if not needed.
'$DEFINE SCRUNGED ' Scrunged, i.e. using the .png
'$DEFINE UNINSTALL ' With Uninstall
'$DEFINE USE_WING ' Install WinG drivers
''$DEFINE WITH_ORDERING_INFO ' Installs the Ordering information file
''$DEFINE MUSEUM_TITLE ' The title is part of the Museum series
''$DEFINE WITH_SAMPLER ' Bundled with a Sampler prog. Custmenu.exe is included.
''$DEFINE WITH_FULL_SAMPLER ' Bundled with the full Sampler prog. Goes in \DKMM\SAMPLER
''$DEFINE WIN32S_REQUIRED ' Win32s is required for this product (or the sampler) to work.
''$DEFINE INST_QTW ' Install QuickTime for Windows.
'This is the only bit that has to be changed by hand throughout if used.
'IF USING SPECIFIC FONTS
'DECLARE FUNCTION InstallFont LIB "dkutils.dll" (szFont$) AS INTEGER
'DECLARE SUB UpdateFonts()
'$IFDEF UNINSTALL
' Update for product language
CONST STR_UNINSTALL = "GLOBO Desinstalaτπo"
CONST LANG_DLL = "Unlang.ptg" 'will use as default if can't find dll to match window lang
'$ENDIF
' Product details
CONST APPLICATION_INI_FILE = "history.ini"
CONST APPLICATION_EXE_FILE = "history.exe"
CONST APPLICATION_PENGE_FILE = "history.png"
CONST INI_FILE_SOURCE = "AppPath" ' OR "WinPath"
CONST EDITOR_EXE = "write.exe " 'OR "notepad.exe "
' Language dependant strings
CONST APPLICATION_README_FILE = "Leia-me.wri"
CONST STR_README = "Leia-me da Hist≤ria do Mundo"
CONST ORDER_FILE = "order.wri"
CONST STR_ORDER = "Ordering Information"
CONST STR_MSGCAPTION = "Programa de Configuraτπo da Hist≤ria do Mundo"
CONST STR_PRODUCTNAME = "Hist≤ria do Mundo"
CONST DEFAULT_INSTALL_PATH = "\GLOBO\HISTORIA"
'
' END OF CHANGE SECTION
'******************************************************************************
'------------------------------------------------------------------------------
'
'$IFDEF WITH_SAMPLER or WITH_FULL_SAMPLER
' Define sampler details
CONST SAMPLER_PATH = "SAMPLER"
CONST APPLICATION_MENU_FILE = "custmenu.exe"
CONST SAMPLER_EXE_FILE = "sampler.exe"
CONST SAMPLER_INI_FILE = "sampler.ini"
CONST STR_SAMPLER = "Dorling Kindersley Sampler"
CONST SAMPLER_BINARIES_SECTION_NAME = "SAMPBIN"
'$ENDIF
'$INCLUDE 'dkgen.inc'
'$IFDEF WIN32S_REQUIRED
' Include extra Win32s specific routines
'$INCLUDE 'win32s.inc'
'$ENDIF
DECLARE SUB CreateReg()
DECLARE SUB Install()
DECLARE SUB AddFilesToCopyList(szInstallType$)
DECLARE FUNCTION IsCDROMDrive LIB "dkutils.dll" (wDrive%) As INTEGER
DECLARE FUNCTION DeleteFiles LIB "dkutils.dll" (szDiffPath$, szProdName$, szDKREgIni$) AS INTEGER
DECLARE FUNCTION DeleteDir LIB "dkutils.dll" (szDiffPath$) AS INTEGER
DECLARE FUNCTION DeleteSection LIB "dkutils.dll" (szProdName$, szDKREgIni$) AS INTEGER
DECLARE FUNCTION TestForCirrus LIB "dkutils.dll" () As INTEGER
DECLARE FUNCTION GetCdVolumeLabel LIB "dkutils.dll" ( szCdVolumeLabel$, szCdDrive$ ) As INTEGER
Init:
Initialise STR_PRODUCTNAME, DEFAULT_INSTALL_PATH, STR_MSGCAPTION
WelcomeDlg:
if Welcome() = NAV_BACK then
' Don nothing - cant go back
end if
if TestSystem() = NAV_BACK then
goto WelcomeDlg
end if
'+++
'$IFDEF WIN32S_REQUIRED
if bInstalledWin32s = 0 then
goto InstallWin32s
endif
FinishedWin32s:
'$ENDIF
'---
'+++
'$IFDEF INST_QTW
ret% = InstallQTW() ' Install QuickTime for Windows
'$ENDIF
'---
'TestCirrus:
if TestForCirrus() = 1 then
dButton = DoMsgBox(STR_CIRRUS, szMsgCaption$, MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
end if
' Dont update ADPCM on Win 95
IF GetWindowsMajorVersion * 100 + GetWindowsMinorVersion < 350 THEN
if UpdateADPCMDrivers() = NAV_BACK then
goto WelcomeDlg
end if
END IF
ExpressCustomDlg:
' defaults to Express
'if szExpressCustomChoice = "EXPRESS" then
' SetSymbolValue "RadioDefault", "1"
'else
' SetSymbolValue "RadioDefault", "1"
'end if
ECDlgLoop:
szButton = UIStartDlg(CUIDLL_FILENAME, IDD_SPEED, "FRadioDlgProc", IDD_WHIZZHELP, PROC_HELP)
select case szButton
case "REACTIVATE"
goto ECDlgLoop
case "BACK"
UIPop 1
goto WelcomeDl